<?php
/**
 * Created by PhpStorm.
 * User: motus
 * Date: 2017/3/26
 * Time: 11:07
 */
class Login_model extends CI_Model {

    function __construct() {
        parent::__construct();
        $this -> load -> database();
    }

    /*
     * 计算函数
     */
    function test($t) {
        $sql = 'select * from t_user';
        $res = $this -> db -> query($sql);
        $resArr = $res -> result();
        return $resArr;
    }
}